import req from "../../utils/request";
import qs from 'qs'

//获取用户组件
export function get_selectPluginsByUser(query) {
    return req({
      url: "/api/getPluginsByUser",
      method: "get",
      params: query,
    });
}
//根据组件id查询函数，环境，监听，切换
export function get_selectPFunctionByPluginsId(query) {
    return req({
      url: "/api/getInfoByPluginsId",
      method: "get",
      params: query,
    });
}
//根据关系线ID查询信息
export function get_getAppLineInfo(query) {
    return req({
      url: "/api/getAppLineInfo",
      method: "get",
      params: query,
    });
}
//根据组件id查询组件信息
export function get_getPlugins(query) {
    return req({
      url: "/api/getPlugins",
      method: "get",
      params: query,
    });
}
//根据条件查询信息展示组件
export function get_getPluginsByUserPage(query) {
    return req({
      url: "/api/getPluginsByUserPage",
      method: "get",
      params: query,
    });
}
//根据条件查询信息展示组件
export function del_deletePlugins(query) {
    return req({
      url: "/api/deletePlugins",
      method: "delete",
      data: qs.stringify(query),
    });
}

